projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d216d89
)
popover: Add a missing #ifdef
author
Ting-Wei Lan
<lantw@src.gnome.org>
Wed, 24 Dec 2014 13:59:49 +0000
(21:59 +0800)
committer
Ting-Wei Lan
<lantw@src.gnome.org>
Wed, 24 Dec 2014 13:59:49 +0000
(21:59 +0800)
gtk/gtkpopover.c
patch
|
blob
|
history
diff --git
a/gtk/gtkpopover.c
b/gtk/gtkpopover.c
index 0fbbd5a50a6b15f7a8672912548a62bc45617490..38dcf51638161726025d3e5aa6d2d0de700ba1ab 100644
(file)
--- a/
gtk/gtkpopover.c
+++ b/
gtk/gtkpopover.c
@@
-822,11
+822,14
@@
gtk_popover_update_position (GtkPopover *popover)
overshoot[GTK_POS_LEFT] = req.width - rect.x;
overshoot[GTK_POS_RIGHT] = rect.x + rect.width + req.width - window_alloc.width;
+#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
{
priv->final_position = priv->preferred_position;
}
- else if (overshoot[pos] <= 0)
+ else
+#endif
+ if (overshoot[pos] <= 0)
{
priv->final_position = priv->preferred_position;
}